import 'package:flutter/material.dart';

class QuizHistory {
  QuizHistory({
    required this.title,
    required this.time,
    required this.spentTime,
    required this.centerData,
    this.pass,
    this.restrictTime,
    this.colorMapper,
  });

  /// xxx考试
  final String title;
  final String time;

  /// 是否通过，null：不是测试，false：未通过，true：通过
  final bool? pass;
  final String spentTime;

  /// 限制时长
  final String? restrictTime;

  /// 中间的数据：对了多少，错了多少...
  final Map<String, String> centerData;

  /// 中间的数据的颜色映射
  final Color? Function(String)? colorMapper;
}
